﻿using Csla;
using System;

namespace Ent.Inscripcion.Core.Core
{
    [Serializable]
    public class CatalogoCriterio : BusinessBase<CatalogoCriterio>
    {
        #region Business Methods

        private static PropertyInfo<string> CodigoProperty = RegisterProperty<string>(o => o.Codigo, "Codigo");
        public string Codigo
        {
            get { return GetProperty(CodigoProperty); }
            set { SetProperty(CodigoProperty, value); }
        }

        private static PropertyInfo<string> NombreProperty = RegisterProperty<string>(o => o.Nombre, "Nombre");
        public string Nombre
        {
            get { return GetProperty(NombreProperty); }
            set { SetProperty(NombreProperty, value); }
        }
        #endregion

        

        #region Factory Methods

        public static CatalogoCriterio NewCatalogoCriterio()
        {
            return DataPortal.Create<CatalogoCriterio>();
        }

        

        private CatalogoCriterio()
        { /* Require use of factory methods */ }

        #endregion


    }

}